import request from '@/utils/request'

// 查询文章图片列表
export function listCms_image(query) {
  return request({
    url: '/cms/cms_image/list',
    method: 'get',
    params: query
  })
}

// 查询文章图片详细
export function getCms_image(id) {
  return request({
    url: '/cms/cms_image/' + id,
    method: 'get'
  })
}

// 新增文章图片
export function addCms_image(data) {
  return request({
    url: '/cms/cms_image',
    method: 'post',
    data: data
  })
}

// 修改文章图片
export function updateCms_image(data) {
  return request({
    url: '/cms/cms_image',
    method: 'put',
    data: data
  })
}

// 删除文章图片
export function delCms_image(id) {
  return request({
    url: '/cms/cms_image/' + id,
    method: 'delete'
  })
}
